<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			this.stateData()
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			// 静态数据
			async stateData(){
				const res = await this.post('/Index/index/config')
				 // uni.setStorageSync('stateData', res.data);
				 this.$store.state.stateData=res.data
				 // console.log(this.$store.state.stateData,"wudi")
				 uni.setStorage({
				     key: 'stateData',
				     data: res.data,
				     success: function () {
				         console.log('success');
				     }
				 });
			}
		},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import './common/uni.css';
</style>
